import {
	createRouter,
	// createWebHashHistory,
	createWebHistory,
} from "vue-router";
import bizRoutes from "./biz.js";
import myRoutes from "./my.js";
import viewRoutes from "./view.js";
const routes = [
	{
		path: "/",
		name: "Home",
		component: () => import("../views/Home.vue"),
		redirect: "/recommend",
		children: [...bizRoutes, ...myRoutes, ...viewRoutes],
	},
];

const router = createRouter({
	history: createWebHistory(),
	routes,
});
export default router;
